[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
complex() Create a Complex Number
#include <complex.h>
complex complex(real, imag);
double real; The real part
double imag; The imaginary part
The complex() function creates a complex number out of the two
numbers you pass it.
Returns: The complex number.
-------------------------------- Example ---------------------------------
#include <iostream.h>
#include <complex.h>
int main(void)
double x = 9.2, y = 5.1;
complex z = complex(x, y);
cout << "The complex number z = "<< z << "\n";
return 0;
See Also:
arg()
conj()
imag()
norm()
polar()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson